<template>
    <!-- 新建考勤 -->
  <div>
    <!-- 新建考勤组 -->
    <el-row>
        <el-col :span="24">
            <div class="grid-content bg-purple-dark">
                <el-button type="primary"  style="margin: 10px;">新建考勤组</el-button>
            </div>
        </el-col>
    </el-row>
    <!-- 条件查询start -->
    <el-row>
        <el-col :span="24">
            <div class="grid-content bg-purple-dark">
                <br>
                <el-form :inline="true" :model="attendance" class="demo-form-inline" style="margin-left: 20px;">
                    <el-form-item label="关键字">
                        <el-input v-model="attendance.user" placeholder="请输入内容"></el-input>
                    </el-form-item>
                    <el-form-item label="类型">
                        <el-select v-model="attendance.attendance_type" placeholder="请选择">
                        <el-option label="固定班次" value="0"></el-option>
                        <el-option label="排班制" value="1"></el-option>
                        <el-option label="自由班制" value="2"></el-option>
                        </el-select>
                    </el-form-item>
                    <el-form-item style="float: right;margin-right: 20px;">
                        <el-button type="primary" @click="onSubmit">搜索</el-button>
                        <el-button @click="onSubmit">重置</el-button>
                    </el-form-item>
                </el-form>
            </div>

        </el-col>
    </el-row>
    <!-- 条件查询end -->
    <!-- 展示数据start -->
    <el-row>
        <el-col :span="24"><div class="grid-content bg-purple-dark"></div></el-col>
    </el-row>
    <!-- 展示数据end -->
  </div>
</template>

<script>
export default {
    name:"attendanceIndex.vue",
    data(){
        return{
            attendance: {}
        }
    },
    methods:{
        onSubmit() {
            console.log('submit!');
        }
    }
}
</script>

<style scoped>
  .el-row {
    margin-bottom: 20px;
    
  }
  .el-col {
    border-radius: 4px;
  }
  .bg-purple-dark {
    background: white;
  }
  .grid-content {
    border-radius: 8px;
    min-height: 36px;
  }
  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }
</style>